invested with discretionary powers